<div class="loader"></div>
<div class="row filter-form-container">
{{ Form::open(array('url' => $base, 'id' => 'form-filter')) }}
	{{-- Form Filter Fields --}}
	<div class='filter-form-group row'>
		<div class="form-group col-md-4">
			{{ Form::label('filter_id', $text_filter_id) }}
			{{ Form::text('filter_id', Input::get('filter_id'), array('class' => 'form-control')) }}
		</div>
		<div class="form-group col-md-4">
			{{ Form::label('filter_email', $text_filter_email) }}
			{{ Form::text('filter_email', Input::get('filter_email'), array('class' => 'form-control')) }}
		</div>
		<div class="form-group col-md-4">
			{{ Form::label('filter_username', $text_username) }}
			{{ Form::text('filter_username', Input::get('filter_username'), array('class' => 'form-control')) }}
		</div>
		<div class="clearfix"></div>
	</div>
	
	{{-- Form Filter Buttons --}}
	<div class="filter-btn-row row">
		{{ HTML::link(URL::to($base), $text_filter, array('class' => 'btn btn-default', 'id'=> 'filter')) }}
	</div>
{{ Form::close() }}
</div>
<p>&nbsp;</p>
<table class="table table-bordered table-striped table-hover">
  <thead>
    <tr>
      <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
      <td class="text-left"><a href="#" class="asc">{{ $list_id }}</a></td>
      <td class="text-left"><a href="#" class="asc">{{ $list_user_group_id }}</a></td>
      <td class="text-left"><a href="#" class="asc">{{ $list_username }}</a></td>
      <td class="text-left"><a href="#" class="asc">{{ $list_lastname }}</a></td>
      <td class="text-left"><a href="#" class="asc">{{ $list_firstname }}</a></td>
       <td class="text-left"><a href="#" class="asc">{{ $list_email }}</a></td>
      <td class="text-right">{{ $list_action }}</td>
    </tr>
  </thead>
  <tbody>
	@foreach($results as $key=>$value)
	<tr>
		<td class="text-center">
			<input type="checkbox" name="selected[]" value="{{ $value->id }}" />
		</td>
		<td>{{ $value->id }}</td>
		<td>{{ $value->USER_GROUP_id }}</td>
		<td>{{ $value->username }}</td>
		<td>{{ $value->lastname }}</td>
		<td>{{ $value->firstname }}</td>
		<td>{{ $value->email }}</td>
		<td>
			<a class="btn btn-info edit" href="{{ URL::to($base, array($value->id, 'edit')) }}" title="{{ $text_edit }}"><i class="fa fa-pencil"></i></a>
			<a class="btn btn-danger remove" data-toggle="modal" id="{{ $base  . '-id-' . $value->id }}" title="{{ $text_remove }}"><i class="fa fa-times"></i></a>
		</td>
	</tr>
	@endforeach            
  </tbody>
</table>

<div class="box-footer">
	<div class="col-xs-14 text-center">
		<div class="dataTables_info">Showing {{ $results->getFrom() }} to {{ $results->getTo() }} of {{ $results->getTotal() }} entries</div>
	</div>
	<div class="col-xs-14 text-center">
		<div class="no-margin">
		{{ $results->appends(Input::all())->links() }}
		</div>
	</div>
</div>